import Layout from '@/layout/Layout'

const serverRouter = {
  path: '/server',
  component: Layout,
  redirect: 'noredirect',
  name: '服务管理',
  meta: {
    title: '服务管理',
    icon: 'el-icon-menu'
  },
  children: [
    {
      path: 'topClassifyManagement',
      component: () => import('@/views/server/TopClassifyManagement'),
      name: 'TopClassifyManagement',
      meta: { title: '上层分类',cache: true}
    },
    {
      path: 'serverClassifyManagement',
      component: () => import('@/views/server/ServerClassifyManagement'),
      name: 'ServerClassifyManagement',
      meta: { title: '服务分类',cache: true}
    },
    {
      path: 'serverTemplateManagement',
      component: () => import('@/views/server/ServerTemplateManagement'),
      name: 'ServerTemplateManagement',
      meta: { title: '服务模板' , cache: true}
    },
    {
      path: 'serverBtnManagement',
      component: () => import('@/views/server/ServerBtnManagement'),
      name: 'ServerBtnManagement',
      meta: { title: '服务功能键' , cache: true}
    },
    {
      path: "btnModelManagement",
      name: "BtnModelManagement",
      meta: { title: "按键样式模板",cache: true},
      component: () => import("@/views/server/BtnModelManagement")
    },

  ]
}

export default serverRouter
